<template>
	<view class="">
		<view class="card p-3 mb-3">
			<view class="font30 mb-3 color333 font-weight-bold line-h flex align-center justify-between">
				<view class="">{{item.name}}</view>
				<view class="font-weight-light color666">{{item.time}}</view>
			</view>
			<view class=" mb-3 infotext">{{item.details}}</view>
			<view class="font14 text-main mb-2 font-weight-500" v-if="item.fileName!=''">请前往APP下载作业文件！</view>
			<view class="flex-column mb-2" style="width: 100%;" v-if="item.imgList!=''">
				<image v-for="(items,i) in item.imgList" :key="i" :src="items.image" style="width: 100%;"
					mode="aspectFill"></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				item:{}
			};
		},
		onLoad() {
			this.item=uni.getStorageSync('taskdetail')
		},
		methods: {

		}
	};
</script>

<style>
	.card {
		background: rgba(255, 255, 255, 1);
		box-shadow: 0rpx 3rpx 10rpx 0rpx rgba(64, 64, 64, 0.12);
		border-radius: 20rpx;
	}
</style>
